﻿using mscook.core.domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mscook.core.services
{
    public interface IMaterialService
    {
        void SaveOrUpdate(Material Material);
        Material Get(string id);
        IList<Material> SelectPageList(int start, int limit, out long total);
        bool Delete(string id);
        IList<Material> SelectListShowOnHome();
        IList<Material> SelectLimitbyIds(IList<string> resourceIds, int start, int limit, out long total);
        IList<Material> GetByKeyword(string keyword, int start, int limit, out long total);
        IList<Material> SelectPageListByExpressions(int start, int limit, out long total, System.Linq.Expressions.Expression<Func<Material, bool>> expression);
    }
}
